#include "ExceptionHandler.h"

ExceptionHandler::ExceptionHandler(RenderWindow* window) : window(window) {
    // init
}

void ExceptionHandler::handle(Exception e) {
    switch (e) {
        case FATAL:
            cout << "Fatal error; shutting down" << endl;
//            window->Close();
            break;
            
        case FILE_NOT_FOUND:
            cout << "File not found" << endl;
            break;
            
        case DIVIDE_BY_ZERO:
            cout << "Divided by zero... idiot." << endl;
            break;
            
        default:
            cout << "Exception not handled" << endl;
            break;
    }
}
